export default [
  {
    path: '/mine',
    name: 'mine',
    meta: {
      title: '我的',
      keepAlive: false
    },
    component: resolve => {
      require(['@/views/mine.vue'], resolve)
    },
    // redirect: '/subject/course',
    // children: [
    //   {
    //     path: 'course',
    //     name: 'Course',
    //     component: resolve => {
    //       require(['../views/index.vue'], resolve)
    //     },
    //     meta: {
    //       title: '课程管理',
    //       keepAlive: false
    //     }
    //   },
    // ]
  },
  {
    path: '/vipQRCode',
    name: 'vipQRCode',
    meta: {
      title: '会员码',
      keepAlive: false
    },
    component: resolve => {
      require(['@/views/vipQRCode.vue'], resolve)
    },
  },
  {
    path: '/myCoupon',
    name: 'myCoupon',
    meta: {
      title: '优惠券',
      keepAlive: false
    },
    component: resolve => {
      require(['@/views/myCoupon.vue'], resolve)
    },
  },
  {
    path: '/footprint',
    name: 'footprint',
    meta: {
      title: '优惠券',
      keepAlive: false
    },
    component: resolve => {
      require(['@/views/footprint.vue'], resolve)
    },
  },
  {
    path: '/attention',
    name: 'attention',
    meta: {
      title: '我的关注',
      keepAlive: false
    },
    component: resolve => {
      require(['@/views/attention.vue'], resolve)
    },
  },
  {
    path: '/myOrder',
    name: 'myOrder',
    meta: {
      title: '我的订单',
    },
    component: resolve => {
      require(['@/views/myOrder.vue'], resolve)
    },
  },
  {
    path: '/logistics',
    name: 'logistics',
    meta: {
      title: '物流详情',
    },
    component: resolve => {
      require(['@/views/logistics.vue'], resolve)
    },
  },
  {
    path: '/keepList',
    name: 'keepList',
    meta: {
      title: '常购清单',
    },
    component: resolve => {
      require(['@/views/keepList.vue'], resolve)
    },
  },
  {
    path: '/redEnvelope',
    name: 'redEnvelope',
    meta: {
      title: '我的红包',
    },
    component: resolve => {
      require(['@/views/redEnvelope.vue'], resolve)
    },
  },
  {
    path: '/afterSales',
    name: 'afterSales',
    meta: {
      title: '售后申请/查询',
    },
    component: resolve => {
      require(['@/views/afterSales.vue'], resolve)
    },
  },
  {
    path: '/mineInformation',
    name: 'mineInformation',
    meta: {
      title: '个人信息',
    },
    component: resolve => {
      require(['@/views/mineInformation.vue'], resolve)
    },
  },
  {
    path: '/nickname',
    name: 'nickname',
    meta: {
      title: '昵称',
    },
    component: resolve => {
      require(['@/views/nickname.vue'], resolve)
    },
  },
  {
    path: '/personalSet',
    name: 'personalSet',
    meta: {
      title: '个人设置',
    },
    component: resolve => {
      require(['@/views/personalSet.vue'], resolve)
    },
  },
  {
    path: '/harvestAddress',
    name: 'harvestAddress',
    meta: {
      title: '收货地址',
    },
    component: resolve => {
      require(['@/views/harvestAddress.vue'], resolve)
    },
  },
  {
    path: '/editAddress',
    name: 'editAddress',
    meta: {
      title: '编辑地址',
    },
    component: resolve => {
      require(['@/views/editAddress.vue'], resolve)
    },
  },
  {
    path: '/bindingAccount',
    name: 'bindingAccount',
    meta: {
      title: '关联账户',
    },
    component: resolve => {
      require(['@/views/bindingAccount.vue'], resolve)
    },
  },
  {
    path: '/accountInfo',
    name: 'accountInfo',
    meta: {
      title: '关联详情',
    },
    component: resolve => {
      require(['@/views/accountInfo.vue'], resolve)
    },
  },
  {
    path: '/financialSet',
    name: 'financialSet',
    meta: {
      title: '金融管理',
    },
    component: resolve => {
      require(['@/views/financialSet.vue'], resolve)
    },
  },
  {
    path: '/invoiceCertification',
    name: 'invoiceCertification',
    meta: {
      title: '发票认证',
    },
    component: resolve => {
      require(['@/views/invoiceCertification.vue'], resolve)
    },
  },
]